/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package encaps.entities;

import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;

/**
 *
 * @author Дима
 */
public interface PersonLocalHome extends EJBLocalHome {
    PersonLocal create(String name, String photo, String bio) throws CreateException;
    PersonLocal findByPrimaryKey(Long key) throws FinderException;
    Collection<PersonLocal> findByParameters(String name, String bio) throws FinderException;
    Collection<PersonLocal> findAll();
}
